<?php
/**
 * 用户信息
 * User: minyifei.cn
 * Date: 15/7/11
 */
use MyfApi\Model\User;

class UserController extends \MyfApi\Libs\BaseController{

    /**
     * 用户资料
     */
    public function profile(){
        $userId = $this->getUserId();
        $u = new User();
        $userInfo = $u->columns("number,mobile,create_time")->findFirst($userId);
        $this->echoSuccess($userInfo);
    }

}